<%
		String message = "";
		if( request.getAttribute("msg") != null )
		{
			message = (String) request.getAttribute("msg");
		}
%>

<html>
<head>
<script language="javascript" type="text/javascript" >
	function setSubmit(DistributorForm)
	{
		var distcode = document.DistributorForm.distcode.value;
		var glcode = document.DistributorForm.glcode.value;
		var region = document.DistributorForm.region.value;
		var district = document.DistributorForm.district.value;
		var hub = document.DistributorForm.hub.value;
		var address = document.DistributorForm.address.value;

		if( distcode == null || distcode == "")
		{
			alert("Distributor Code should be Mandatory.");
			return false;
		}
		else if( glcode == null || glcode == "")
		{
			alert("Distributor GLCode should be Mandatory.");
			return false;
		}
		else if( region == null || region == "")
		{
			alert("Region should be Mandatory.");
			return false;
		}
		else if( district == null || district == "")
		{
			alert("District should be Mandatory.");
			return false;
		}
		else if( hub == null || hub == "")
		{
			alert("Hub Name should be Mandatory.");
			return false;
		}
		else if( address == null || address == "")
		{
			alert("Address should be Mandatory.");
			return false;
		}
		else
		{
			document.DistributorForm.eventAction.value = "entry";
			return true;
		}
	}
	function setReset(DistributorForm)
	{
		document.DistributorForm.reset();
		return false;
	}
</script>
<style type="text/css">
<!--
.style1 {	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-size: 18px;
}
-->
</style>
</head>
<body bgcolor="lavender" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="797" border="0" cellpadding="0" cellspacing="0" class="mainbox">
<tr>
<td>
<p>&nbsp;</p><p>&nbsp;</p>
<p align="center" ><span class="style1"><font color="#CC0066"><u>Distributor Details Entry Process</u></font></span></p>
<form action="/airtel/distinfo" method="POST" name="DistributorForm" >
<table align="center">

<tr><td align=right><b><font size=4>Distributor Code&nbsp;&nbsp;</b></td>
	<td align=left >&nbsp;&nbsp;<input type="text" name="distcode" size="20" ></td></tr>

<tr><td align=right><b><font size=4>GL Code&nbsp;&nbsp;</b></td>
	<td align=left >&nbsp;&nbsp;<input type="text" name="glcode" size="20" ></td></tr>

<tr><td align=right><b><font size=4>Region Name&nbsp;&nbsp;</b></td>
	<td align=left >&nbsp;&nbsp;<input type="text" name="region" size="20" ></td></tr>

<tr><td align=right><b><font size=4>District Name&nbsp;&nbsp;</b></td>
	<td align=left >&nbsp;&nbsp;<input type="text" name="district" size="20" ></td></tr>

<tr><td align=right><b><font size=4>Hub Name&nbsp;&nbsp;</b></td>
	<td align=left >&nbsp;&nbsp;<input type="text" name="hub" size="20" ></td></tr>

<tr><td align=right valign="top" ><b><font size=4>Address&nbsp;&nbsp;</b></td>
	<td align=left >&nbsp;&nbsp;<textarea name="address" rows="5" cols="15" ></textarea></td></tr>

<tr><td align=center colspan="2"><br><br>
	<input type="submit" name="submit" value="commit" onClick="return setSubmit(this)">&nbsp;&nbsp;
	<input type="submit" value="Reset" onClick="return setReset(this)"></td></tr>
</table>
	<input type="hidden" name="eventAction">
</form>
</td>
</tr>
</table>
<br>
<p align="center"><font color="red" ><%=message%></font></p>
</body>
</html>